package com.lude.erp.prototype.model;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import com.lude.erp.common.model.BaseModel;

@Entity(name = "identity_role_menu")
public class IdentityRoleMenu implements BaseModel
{
	
	private static final long serialVersionUID = 1L;

	private long roleMenuId;

	private SystemFunctionMenu systemFunctionMenu;

	private IdentityRole identityRole;

	private Integer sequence;

	private Date createdDate;

	private Date createdDatetime;

	private Date updatedDate;

	private Date updatedDatetime;

	@Id
	@GeneratedValue
	public long getRoleMenuId()
	{
		return roleMenuId;
	}

	public void setRoleMenuId(long roleMenuId)
	{
		this.roleMenuId = roleMenuId;
	}

	@ManyToOne
	@JoinColumn(name = "menu_id")
	public SystemFunctionMenu getSystemFunctionMenu()
	{
		return systemFunctionMenu;
	}

	public void setSystemFunctionMenu(SystemFunctionMenu systemFunctionMenu)
	{
		this.systemFunctionMenu = systemFunctionMenu;
	}

	@ManyToOne
	@JoinColumn(name = "role_id")
	public IdentityRole getIdentityRole()
	{
		return identityRole;
	}

	public void setIdentityRole(IdentityRole identityRole)
	{
		this.identityRole = identityRole;
	}

	public Integer getSequence()
	{
		return sequence;
	}

	public void setSequence(Integer sequence)
	{
		this.sequence = sequence;
	}

	public Date getCreatedDate()
	{
		return createdDate;
	}

	public void setCreatedDate(Date createdDate)
	{
		this.createdDate = createdDate;
	}

	public Date getCreatedDatetime()
	{
		return createdDatetime;
	}

	public void setCreatedDatetime(Date createdDatetime)
	{
		this.createdDatetime = createdDatetime;
	}

	public Date getUpdatedDate()
	{
		return updatedDate;
	}

	public void setUpdatedDate(Date updatedDate)
	{
		this.updatedDate = updatedDate;
	}

	public Date getUpdatedDatetime()
	{
		return updatedDatetime;
	}

	public void setUpdatedDatetime(Date updatedDatetime)
	{
		this.updatedDatetime = updatedDatetime;
	}

}
